SCC-Based Value Numbering

نویسندگان

  • Keith Cooper
  • Taylor Simpson
  • Keith D. Cooper
  • L. Taylor
چکیده

Value numbering is an optimization that assigns numbers to values in such a way that two values are assigned the same number if and only if the compiler can prove they are equal. When this optimization discovers two computations that produce the same value, it can (under certain circumstances) eliminate one of them. There are two competing techniques for proving equivalences: hashing and partitioning. The hashing techniques are easy to understand and implement, and they can easily handle constant folding and algebraic identities (i.e., x+0 = x). Their prime drawback is that they are not global techniques. The partitioning techniques are global, but they cannot easily handle constant folding and algebraic identities. As a result of their shortcomings, both of these techniques can fail to discover some crucial equivalences. In this paper, we describe a new technique for assigning value numbers that combines the advantages of both techniques { it is easy to understand and implement; it can easily handle constant folding and algebraic identities, and it is global. We refer to this new technique as SCC-based value numbering because it is centered around the strongly connected components of the static single assignment graph. We will prove that our technique always nds at least as many equivalences as hashing or partitioning, and experimentally compare the improvements made in the context of an optimizing compiler.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Static Removal of Redundant Loads

This paper presents a strong technique for removing redundant loads from programs. The first part of the paper describes an algorithm for detecting memory redundancies (based on Simpson’s SCC value numbering algorithm [34]) and two frameworks for subsequently removing the redundant operations from the code (one based on available expressions [14] and the other on lazy code motion [23, 17]). The...

متن کامل

An Improved Algorithm for Redundancy Detection Using Global Value Numbering

Global value numbering (GVN) is a method for detecting equivalent expressions in programs. Most of the GVN algorithms concentrate on detecting equalities among variables and hence, are limited in their ability to identify value-based redundancies. In this paper, we suggest improvements by which the efficient GVN algorithm by Gulwani and Necula (2007) can be made to detect expression equivalence...

متن کامل

A Simple Algorithm for Global Value Numbering

Global Value Numbering(GVN) is a method for detecting redundant computations in programs. Here, we introduce the problem of Global Value Numbering in its original form, as conceived by Kildall(1973), and present an algorithm which is a simpler variant of Kildall’s. The algorithm uses the concept of value expression an abstraction of a set of expressions enabling a representation of the equivale...

متن کامل

The International Journal of Logistics Management Realities of supply chain collaboration

Purpose – This paper aims to investigate the gap between the interests in supply chain collaboration (SCC) and the relatively few recorded cases of successful applications – this is the reality of SCC. Design/methodology/approach – The research represents the viewpoints of the authors based on their collective field experiences and literature reviews. Findings – Three realities of SCC are ident...

متن کامل

Diagnostic Accuracy of CT Scan for Detection of Cervical Lymph Node Metastasis in Oral Squamous Cell Carcinoma in Comparison with Histopathological Analysis After Neck Dissection

Objectives: Presence/absence of cervical lymph node metastasis plays a critical role in prognosis and survival of patients with oral squamous cell carcinoma (SCC). This study was designed to assess the diagnostic accuracy of computed tomography (CT) scan for detection of cervical lymph node metastasis in oral SCC in comparison with histopathological analysis after neck dissection Methods: In...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1995